package com.isoftstone.studentregistration.mapper;

import com.isoftstone.studentregistration.pojo.Users;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserMapper {
    int insertUser(Users user);
    int updateUser(Users user);
    int deleteUser(Integer id);
    List<Users> queryAllUsers();//查询所有用户
    Users queryUserByPhone(String phone);
    Users queryUserById(Integer id);//根据id查询用户（既要条件又要分页）
    int batchDeleteUser(@Param("ids") List<Integer> ids);

    Users login(@Param("phone") String phone,@Param("password") String password);
}
